// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 1.重置浏览器css样式
import 'styles/reset.css'
// 2.一边框像素问题
import 'styles/border.css'
// 3.引入iconfont图片
import 'styles/iconfont.css'
// 3.300毫秒点击延迟问题解决办法
import fastClick from 'fastclick'

// 4.导入第三方框架vue-awesome-swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

// 5.导入store（Vuex）
import store from './store'

Vue.config.productionTip = false
// 将这个挂载到body上
fastClick.attach(document.body)

/* eslint-disable no-new */
// vue实例化
new Vue({
  el: '#app',
  router,
  // 传入store
  store,
  // es6写法
  components: { App },
  template: '<App/>'
})
